package com.gaohe.post.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gaohe.common.core.annotation.Excel;
import com.gaohe.common.core.web.domain.BaseEntity;

/**
 * 帖子置顶记录对象 fm_post_top
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
public class FmPostTop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 帖子置顶记录id */
    private Long postTopId;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long postId;

    /** 是否置顶(0不置顶/1置顶) */
    @Excel(name = "是否置顶(0不置顶/1置顶)")
    private Long isTop;

    /** 置顶结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "置顶结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date topEndTime;

    /** 置顶排序 */
    @Excel(name = "置顶排序")
    private Long sort;

    /** 是否删除 */
    private Long delFlag;

    public void setPostTopId(Long postTopId) 
    {
        this.postTopId = postTopId;
    }

    public Long getPostTopId() 
    {
        return postTopId;
    }

    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }

    public void setIsTop(Long isTop) 
    {
        this.isTop = isTop;
    }

    public Long getIsTop() 
    {
        return isTop;
    }

    public void setTopEndTime(Date topEndTime) 
    {
        this.topEndTime = topEndTime;
    }

    public Date getTopEndTime() 
    {
        return topEndTime;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postTopId", getPostTopId())
            .append("postId", getPostId())
            .append("isTop", getIsTop())
            .append("topEndTime", getTopEndTime())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
